﻿using com.iot.core.annotation;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Linq;

namespace com.iot.core.data.entity
{
    [Schema(Name = "Url表", Description = "")]     
    public class HtAction:BaseEntity,ISoftDeletedEntity
    {

         

        [Comment("代码名称")]
        [Schema(Name = "代码名称", Description = "")]
        [MaxLength(20)]
        public string PrjName { get; set; } = "";


        [Comment("CtlFullName")]
        [Schema(Name = "CtlFullName", Description = "")]
        [MaxLength(100)]
        public string CtlFullName { get; set; } = "";


        [Comment("Url")]
        [Schema(Name = "Url", Description = "")]
        [MaxLength(100)]
        public string FullUrl { get; set; } = "";


        [Comment("名称")]
        [Schema(Name = "名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("ename")]
        [Schema(Name = "ename", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Ename { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";


        [Comment("参数类型")]
        [Schema(Name = "参数类型", Description = "")]
        [MaxLength(100)]
        public string PinType { get; set; } = "";


        [Comment("参数是否List")]
        [Schema(Name = "参数是否List", Description = "")]
        public bool PinIslist { get; set; }


        [Comment("返回类型")]
        [Schema(Name = "返回类型", Description = "")]
        [MaxLength(100)]
        public string PoutType { get; set; } = "";


        [Comment("返回是否List")]
        [Schema(Name = "返回是否List", Description = "")]
        public bool PoutIslist { get; set; }


        [Comment("返回是否分页")]
        [Schema(Name = "返回是否分页", Description = "")]
        public bool PoutIspage { get; set; }


        [Comment("授权类型")]
        [Schema(Name = "授权类型", Description = "")]
        [MaxLength(10)]
        public string AuthType { get; set; } = "";


        [Comment("是否需要日志")]
        [Schema(Name = "是否需要日志", Description = "")]
        public bool LogNeed { get; set; }


        [Comment("日志模板")]
        [Schema(Name = "日志模板", Description = "")]
        [MaxLength(100)]
        public string LogTemplete { get; set; } = "";


        [Comment("是否记录参数")]
        [Schema(Name = "是否记录参数", Description = "")]
        public bool LogPin { get; set; }


        [Comment("是否记录输出")]
        [Schema(Name = "是否记录输出", Description = "")]
        public bool LogPout { get; set; }


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("修改日期")]
        [Schema(Name = "修改日期", Description = "")]
        public DateTime EdtDt { get; set; }


        [Comment("删除标志")]
        [Schema(Name = "删除标志", Description = "")]
        public bool Deleted { get; set; }
    }
}
